Storage system

ABSTRACT

A storage system encrypts a plain text received from an external device and stores the cryptogram into a disk unit and, thereafter, decrypts the stored data in the disk unit and transmits the decrypted text to the external device. The storage system includes an encryption unit for encrypting first data received from the external device, a decryption unit for decrypting the encrypted data into second data, and a comparison unit for comparing the first and second data. When the first data and the second data are in disagreement, the first data is encrypted by an encryption unit different from the encryption unit encrypted the first data and the encrypted data is decrypted by the decryption unit into third data, whereupon the first data and the third data are compared. When the first data and the third data are also in disagreement, a failure report is sent to the external device.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application relates to and claims priority from Japanese PatentApplication No. filed on , the entire disclosure of which isincorporated herein by reference.

BACKGROUND OF THE INVENTION

The present invention relates to a storage system capable of encryptingand decrypting data.

As one of the security measures for computer and other systems, there isdata encryption technology. (Refer to Japanese Patent UnexaminedPublication No. 2002-217887.) A process for performing encryption(hereinafter referred to as “encryption process”) or a process forperforming decryption (hereinafter referred to as “decryption process”)are being achieved by the use of semiconductor parts or software.However, when semiconductor parts are used, there is a possibility ofoccurrence of a malfunction if the parts are subjected to radiation ofalpha ray or the like. Whereas, when software is used, there is a riskof such a trouble as a computing error occurring upon arrival of aspecific data pattern.

On the other hand, there are increasing demands for enhancement ofsecurity of the storage system itself. Generally speaking, when anexternal device such as a server transmits data to a storage system, itholds the same data as the transmitted data stored in the main memory orthe like of the external device until it is confirmed that the data isnormally received by the storage system, and deletes the stored dataafter the confirmation is obtained. Meanwhile, the storage system, uponreceipt of the data transmitted from the external device, temporarilystores the data in a cache memory of its own. The storage system, afterobtaining confirmation of the data being normally stored in its own diskdevice, keeps the data stored in the cache memory for a predeterminedperiod of time and deletes the stored data when the predetermined periodhas passed. (Refer to Japanese Patent Unexamined Publication No.H03-172946.)

SUMMARY OF THE INVENTION

In view of the above-described technical trends, the data encryptiontechnology is expected hereafter to be applied to the storage system.However, a mere application of the encryption technology to the storagesystem may give rise to the following problems.

A storage system encrypts data received from an external device, whichdata is not yet encrypted (hereinafter referred to as “plain text”), andstores the thus encrypted data (hereinafter referred to as “cryptogram”)into a disk device within the storage system. Then it decrypts the datastored in the disk device and transmits the thus decrypted data(hereinafter referred to as “decrypted text”) to the external device. Atthis time, the plain text and the decrypted text should naturally beidentical when seen from the external device. However, if there has beenmade a failure in the encryption process or decryption process, theplain text and the decrypted text may become different.

For example, if the failure has been that occurred in the decryptionprocess (due to a fault in the decryption circuit, the decryptionprogram, or the like), the cryptogram, provided that it is properlyencrypted cryptogram, can be decrypted back to the plain text bysubjecting it to a normal decryption process (by use of another normaldecryption circuit or the like). However, in the case where the failurehas been that occurred in the encryption process, since it is quitepossible that the plain text originally transmitted from the externaldevice has already been deleted, the original plain text cannot berecovered even if the decryption process is performed properly. In otherwords, seen from the external device, the decrypted text may be a meremeaningless string of letters and, after all, the data is lost.

In order to solve the above-described problem, an exemplary embodimentof the present invention has the following configuration.

A storage system comprises an encryption unit for encrypting first datareceived from an external device, a decryption unit for decrypting theencrypted data into second data, and a comparison unit for comparing thefirst data and the second data. When the first data and the second dataare not in agreement, a report of failure is sent to the externaldevice. Otherwise, the first data may be encrypted by an encryption unitdifferent from the encryption unit whereby the first data was encryptedand the thus encrypted data may be decrypted by the decryption unit intothird data, and thereupon, the first data and the third data may becompared.

Other and further objects, features and advantages of the invention willappear more fully from the following description.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram showing an example of a configuration of a computersystem;

FIG. 2 is a diagram showing an example of a configuration of a channelIF unit;

FIG. 3 is a flowchart of an encryption process; and

FIG. 4 is a flowchart of a decryption process.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

A preferred embodiment of the present invention will be described withreference to the accompanying drawings.

FIG. 1 is a diagram showing an example of a configuration of a computersystem. The computer system is made up of a storage system 1, a server(computer) 3, and a control terminal 8. The storage system 1 and theserver 3 are connected with each other via a network.

The storage system 1 is made up of a channel IF unit 11 for transmittingand receiving data to and from the server 3, a disk IF unit 16 fortransmitting and receiving data to and from a disk device 2, a switchunit 51, a memory unit 21, and the disk device 2. The channel IF unit 11and the disk IF unit 16 are connected with the memory unit 21 via theswitch unit 51.

The control terminal 8 is connected with microprocessors (hereinafterreferred to as “MP”) within the channel IF unit 11 and the disk IF unit16 in the storage system 1 via networks. The control terminal 8 chieflysets up the configuration of the storage system 1, supervises thesystem, and collects information about the operating state and failurestate of the system, and so on. It also collects, as failureinformation, a disagreement between a plain text and a decrypted textdue to a later discussed trouble of an encryption/decryption unit. Fromthe information collected by the control terminal 8, it can berecognized at which encryption/decryption unit, for example, a troublehas occurred. Hence, it becomes possible to easily identify the part tobe replaced. Incidentally, the location of the function of the controlterminal 8 is not limited to that described above but it may be locatedwithin the server 3, the storage system 1, or on the network.

The present invention is applicable, but not exclusively, to suchnetworks as the IP network and FC network.

The channel IF unit 11, disk IF unit 16, and memory unit 21 areinterconnected by two switch units 51 and one each of communicationpath. The communication path here means a transmission path made up ofone or more signal lines for transmitting data/control information.Thus, two transmission paths interconnecting the channel IF units 11,the disk IF units 16, and the memory units 21 can be secured, andthereby reliability on the storage system can be enhanced. Incidentally,the numbers of units and lines mentioned above are not for limitationbut for illustration of an embodiment. This rule is applicable to allembodiments which will be discussed hereinafter. Although, in thepresent embodiment, an example in which the channel IF unit 11, disk IFunit 16, and memory unit 21 are interconnected through the switch unit51 has been shown, it is enough if the units are interconnected so thatdata/control information is transmitted over the interconnections.Hence, the units may for example be connected with each other throughbusses.

The memory unit 21 has a memory module 127 and a memory controller 125.The memory module 127 is logically divided into two domains. One domainis a cache memory domain in which data to be written into disk device 2or data read out from disk device 2 is temporarily stored. The otherdomain is a control memory domain in which information for controllingdata transfer between channel IF unit 11, disk IF unit 16, and memoryunit 21, information for controlling storage system 1, information ofthe system configuration, and the like is stored. The memory controller125 controls read/write processes of data from and to the memory module127. The memory controller 125 also controls transfer of data/controlinformation to and from the channel IF unit 11, the disk IF unit 16, andanother memory unit 21.

In general, the storage system stores data received from an externaldevice such as a server into the cache memory and then stores the datainto the disk device. As one of the methods, there is a method in whichthe data stored in the cache memory is stored in the disk device, andthereupon, the completion of the data processing is reported to theexternal device (“cache write through”). As another method, there is onein which the storage of data into the cache memory and the storage ofthe data from the cache memory into the disk device are performedasynchronously (“cache write back”). More specifically, at the momentdata is stored in the cache memory, the completion of the dataprocessing is reported to the external device and thereafter the data inthe cache memory is stored into the disk device. The overall processingtime in the latter method becomes shorter than in the former method.

Incidentally, the memory module 127 can be physically divided into twomodules, a cache memory module and a control memory module. In thiscase, the memory controller 125 controls read/write processes of data onthe two memory modules independently of each other. Otherwise, thememory controller 125 can be divided into two, i.e., one for controllingthe cache memory module and the other for controlling the control memorymodule. Further, storage of the data/control information into the memorymodule 127 may be duplicated by use of the two memory units 21 of thestorage system 1 (i.e., the data/control information may be duplicatedand stored into both of the memory modules 127). Thereby, in case of amalfunction occurring in one memory unit 21, the operation can becontinued by use of data stored in the other memory unit 21, and hencethe reliability on the storage system 1 can be improved.

Although the disk device 2 is generally formed of magnetic disks, it mayalso be formed of other storage media such as optical disks, andsemiconductor memory devices. Further, the disk device 2 may be of adisk-array configuration or a RAID configuration.

FIG. 2 is a diagram showing details of the channel IF unit 11.

The channel IF unit 11 includes host IFs 101 for controlling datatransfer to and from a server 3, MPs 100 for controlling the channel IFunit 11, a data transfer unit 103 for controlling transfer ofdata/control information to and from a memory unit 21, and anencryption/decryption unit 201 (201-1, 201-2).

The encryption/decryption unit 201 includes an encryption unit 202 forperforming an encryption process, a decryption unit 203 for performing adecryption process, a comparison unit 204, input/output units forinputting and outputting data, a counter 207 for counting the number oferrors occurring in the encryption/decryption unit 201, and a register208 for setting a threshold value of the number of errors. Theinput/output units are formed of an input/output unit 205 on the side ofthe data transfer unit 103 and an input/output unit 206 on the side of aswitch unit 51.

The host IFs 101 are connected with data transfer unit 103 through acommon bus 104. On the other hand, the MPs 100 are connected with thedata transfer unit 103 through a common bus 105. Further, the datatransfer unit 103 has two transmission paths 106 for establishingconnections with two switch units 51 through the encryption/decryptionunits 201. One encryption/decryption unit 201 is provided for eachtransmission path 106. Thereby, it is made possible to have theencryption and decryption process performed through each transmissionpath 106 and hence no contention occurs between the two transmissionpaths 106. However, a configuration with a single encryption/decryptionunit may be made for reduction of the cost of parts.

The MP 100, based on the control information stored in the controlmemory domain within the memory module 127, controls read/writeprocessing of data on the cache memory domain within the memory module127, directory control in the cache memory domain, and data transferbetween the host IF 101 and the memory unit 21. It further performs suchprocesses, as discussed later, as checking of the result of comparisonbetween a cryptogram and a decrypted text, sending a report of failureto the server 3, the control terminal 8, and the like when thecryptogram and the decrypted text are not in agreement, and so on.

The connecting configuration of the host IF 101, MP 100,encryption/decryption unit 201, and data transfer unit 103 given aboveis not for limitation but for illustration of an embodiment. It isenough if, at least, the data transfer from the host IF 101 to thememory unit 21 is performed by way of the data transfer unit 103 and theencryption/decryption unit 201. Otherwise, it is enough if the MP 100 iscapable of controlling the host IF 101 and data transfer unit 103 andaccessing the memory unit 21. Further, it is enough if, at least, thereare provided the encryption unit 202, decryption unit 203, andcomparison unit 204, which need not necessarily be grouped as theencryption/decryption unit 201. Further, the encryption/decryption unit201 may be omitted if it is arranged such that the encryption anddecryption process is performed only by the disk IF unit 16 as discussedlater. Further, the party to and from which the data is transmitted isnot limited to the server 3 but it may be any external deviceconnectible to the storage system 1. For example, when a remote copyingfunction is performed, the other party can be another storage system.

FIG. 3 is a flowchart of an encryption process. The MP 100, inencryption/decryption unit 201-1, allows a plain text transmitted fromthe server 3 or the like to be passed through the host IF 101 and thedata transfer unit 103 so as to be input from the input/output unit 205to the encryption unit 202 and the comparison unit 204 (step 301). Thecomparison unit 204 holds the plain text stored therein. Then, theencryption unit 202 encrypts the plain text input thereto and, whileholding the cryptogram stored therein, transmits the cryptogram to thedecryption unit 203 (step 302). Then, the decryption unit 203 decryptsthe cryptogram transmitted thereto and transmits the decrypted text tothe comparison unit 204 (step 303). Then, the comparison unit 204compares the plain text held stored therein with the decrypted texttransmitted thereto from the decryption unit 203 (step 304). The MP 100checks the result of comparison (step 305) and, when both the texts arein agreement, it judges that the encryption has been made correctly andtransmits the cryptogram held stored in the encryption unit 202 to thememory unit 21 through the switch unit 51 (step 306). If they are not inagreement, the MP 100 judges that the encryption has not been madecorrectly and transmits the plain text held stored in the comparisonunit 204 to the encryption/decryption unit 201-2, and processing isperformed over again in the encryption/decryption unit 201-2 (step 307).If both texts are in agreement here, processing at step 306 isperformed, and if they are not in agreement, occurrence of the error isreported to the server 3, the control terminal 8, and the like (step308).

Although such a circuit as the encryption unit 202 in theencryption/decryption unit 201-1 normally operates well but once in along while it produces an error. To put it the other way around, even ifan error is produced therein, it does not necessarily mean that thecircuit is faulty. Hence, such a step may be provided in which it isjudged that a fault has occurred in the circuit when such errors haveoccurred a number of times greater than a predetermined number. Namely,a threshold value of the times of occurrence of errors is set in theregister 208 beforehand. The counter 207 counts the number of errorsoccurred and, at the moment the value has exceeded the threshold value,the MP 100 switches the process over to the encryption/decryption unit201-2. When the threshold value has been exceeded also in theencryption/decryption unit 201-2, the MP 100 sends a report of failureto the server 3, the control terminal 8, and the like.

The number of the encryption/decryption units 201 is not limited to thatmentioned above. For example, when n pieces of the same are used, the npieces of encryption/decryption units 201 may respectively perform theirfunctions. Then, it may be adapted such that the MP 100 sends a failurereport when errors have occurred in all of the n pieces of theencryption/decryption units 201 or, otherwise, such that a failurereport is sent out when errors have occurred in a predetermined numberof the units.

Further, in such a case where the encryption/decryption processes areperformed in the disk IF unit 16 as discussed later, the plain text, notthe cryptogram, may be transmitted to the memory unit 21 at step 306(for example, at the moment it is judged that errors have occurred in apredetermined number of pieces of the encryption/decryption units 201).Then, it is enough if the text has been turned into a cryptogram whenthe text is finally stored into the disk device 2.

Here, other than the method of comparing data themselves such as theplain text and decrypted text, there is a method of comparing values ofa fixed length calculated from the data following a predetermined rule.The value of the fixed length is called a hash value (it is also called“message digest”) The hash values assume completely different values inaccordance with delicate differences of the original data. This propertyis used for comparison between the plain text and decrypted text. Whenit is applied to the flowchart of the encryption process of FIG. 3, thecomparison unit 204 calculates a hash value 1 after a plain text hasbeen input to the comparison unit 204 at step 301 and calculates a hashvalue 2 from a decrypted text at step 303. Then, the hash value 1 iscompared with the hash value 2 at step 304. Thereafter, the MP 100checks the result of comparison at step 305.

When a server 3 or the like has the same function as theencryption/decryption unit used in the present embodiment has, it ispossible that data as a cryptogram is transmitted from the server or thelike at step 301. In such case, since the text is originally encrypted,it is not necessary to check whether the encryption unit 202 is normalor not. However, by performing a decryption process as discussed later,the decryption unit 203 may be checked whether it is normal. Otherwise,after having the data decrypted once, the above encryption process maybe performed to determine whether the encryption unit 202 is normal ornot.

When a cryptogram is communicated to and from the server 3 or the like,the encryption key used by the server 3 or the like must have beenacquired. Therefore, the encryption keys may have to be exchangedbetween the system and the server 3 or the like or, otherwise, anoutside authentication server may have to be established.

FIG. 4 is a flowchart of a decryption process.

In encryption/decryption unit 201-1, the MP 100 reads a cryptogram outof the memory unit 21 and inputs it to the decryption unit 203 and thecomparison unit 204 through the input/output unit 206 (step 401). If, atthis time, there is no cryptogram as an object of decryption present inthe memory unit 21, the disk IF unit 16 reads a cryptogram out of thedisk device 2 and writes it into the memory unit 21, and thereafter theMP 100 reads out the cryptogram from the memory unit 21. The comparisonunit 204 holds the cryptogram stored therein. Then, the decryption unit203 decrypts the input cryptogram and, while holding the cryptogramstored therein, the decryption unit 203 transmits the decrypted text tothe encryption unit 202 (step 402). Then, the encryption unit 202encrypts the decrypted text transmitted thereto and transmits thecryptogram to the comparison unit 204 (step 403). Then, the comparisonunit 204 compares the cryptogram held stored therein and the cryptogramtransmitted thereto from the encryption unit 202 (step 404). The MP 100checks the result of comparison (step 405), and if both are in agreementit determines that the decryption has been performed correctly andallows the decrypted text stored in the decryption unit 203 to betransmitted to the server 3 through the data transfer unit 103 and thehost IF 101 (step 406). If both the texts are not in agreement, the MP100 determines that the decryption has not been correctly performed andthereupon it transmits the cryptogram held stored in the comparison unit204 to the encryption/decryption unit 201-2 and have the cryptogramprocessed over again in the encryption/decryption unit 201-2 (step 407).If both texts are in agreement here, the process at step 406 isperformed and, if they are not in agreement, occurrence of the error isreported to the server 3, the control terminal 8, and the like (step408). Processes to be performed when n pieces of encryption/decryptionunits 201 are provided are the same as in the flow of encryptionprocess. Incidentally, when the server 3 or the like has the samefunction as the encryption/decryption unit described in the presentprocessing has, a cryptogram gone through checking as it is may betransmitted to the server 3 or the like at step 406.

In this case, the same as in the encryption process, comparison with theuse of hash values may be carried out. When applied to the flowchart ofdecryption process of FIG. 4, after a cryptogram is input to thecomparison unit 204 at step 401, the comparison unit 204 calculates ahash value 1 and calculates a hash value 2 from the cryptogram at step403 and then compares the hash value 1 and the hash value 2 at step 404.Then, MP 100 checks the result of comparison at step 405.

Although the method of comparison with the use of data themselves andcomparison with the use of hash values have been described in thepresent embodiment, the methods of comparison are not limited to these.

The above described encryption and decryption process may be carried outby the disk IF unit 16. The time point at which encryption processing ismade, for example, is when the data received from a server 3, after itis once stored in the memory module 127, is stored into the disk device2. The configuration of the disk IF unit 16 is substantially the same asthat of the channel IF unit 11, and hence it is not shown in the figure.Its difference from the channel IF unit 11 is that, while the host IF101 controls the data transfer to and from the external devices such asthe server 3, its portion corresponding to the host IF 101 (disk IF)controls data transfer to and from the memory unit 21 through the switchunit 51. Further, while the input/output unit 206 of the channel IF unit11 is connected with the memory unit 21 through the switch unit 51, theinput/output unit of the disk IF unit 16 is connected with the diskdevice 2.

The above described processes may be performed by both or only by one ofthe channel IF unit 11 and the disk IF unit 16. Namely, variousvariations such as, for example, having the encryption process performedonly by the channel IF unit 11 and the decryption process performed onlyby the disk IF unit 16 can be considered. Processes at steps 306 and 406may vary depending on the variations. For example, when the encryptionprocess is performed in both of the channel IF unit 11 and the disk IFunit 16, the channel IF unit 11 will transmits a plain text to thememory unit 21 (while the disk IF unit 16 transmits a cryptogram to thedisk device 2). Otherwise, when the decryption process is performed inboth of the channel IF unit 11 and the disk IF unit 16, the disk IF unit16 will transmit a cryptogram to the memory unit 21 at step 406 (whilethe channel IF unit 11 transmits a decrypted text to the server 3).

Although the description in the above has been given on the premise thatthe encryption unit 202 and the decryption unit 203 are logical circuitsindependent of each other, they may be arranged into anencryption/decryption unit as an integral logical circuit. However, if afailure occurs in this case, the functions performing encryption anddecryption are both affected. Therefore, when the processes as describedabove are performed, a plain text and a decrypted text obtained byencryption and decryption of the original text will come to beapparently in agreement. Then, it becomes impossible to detect a failurein the encryption/decryption unit.

Accordingly, a plurality of encryption/decryption units may be preparedand further a failure detection unit for detecting a failure in anencryption/decryption unit may be provided. In the event that theresults of encrypting and decrypting processes performed by respectiveencryption/decryption units are not in agreement, it is determined thata failure has occurred at least in one of the encryption/decryptionunits. Further, when three or more of encryption/decryption units areused, if only one encryption/decryption unit of them gives a resultdifferent from the results of the rest of them, it is then determinedthat a failure has occurred in the encryption/decryption unit giving theresult different from the rest. Thereupon, the MP sends a report offailure to such external devices as the server and the control terminal.Incidentally, a counter may be provided as in the above-describedexample so that a report of failure may be made when errors haveoccurred over a predetermined number of times.

In the above embodiments, the encryption unit, the decryption unit, thecomparison unit, the encryption/decryption unit having an encryptionunit and an decryption unit integrated therein, the failure detectionunit, and soon have been described as provided by hardware. However,they may be realized by programs. For example, a memory unit for storingprograms may be provided within the channel IF unit 11 so thatencryption programs, decryption programs, comparison programs, and so onare stored therein. By allowing the MP to execute these programs, theprocesses as described above can be performed. The same arrangement canalso be realized in the disk IF unit. Such programs can be furnished asstored in a storage medium (such as a CD-ROM) capable of being read by acomputer. It is also possible that such programs are furnished overnetworks such as the Internet.

According to the present invention, a disagreement between a decryptedtext and a plain text due to a failure in the encryption unit can beprevented from occurring.

1. A storage system connected to an external device comprising: anencryption unit for encrypting first data received from the externaldevice; a decryption unit for decrypting the encrypted data into seconddata; and a comparison unit for comparing the first and second data. 2.A storage system according to claim 1, further comprising; a firstencryption unit different from said encryption unit, wherein said firstencryption unit, when the first data and the second data are not inagreement, encrypts the first data and said decryption unit decrypts theencrypted data into third data and thereupon said comparison unitcompares the first data and the third data.
 3. A storage systemaccording to claim 1, wherein a report of failure is sent to theexternal device when the first and the second data are not in agreement.4. A storage system according to claim 3, further comprising; a controlterminal for supervising said storage system, wherein the report offailure is sent to said control terminal.
 5. A storage system accordingto claim 1, wherein said comparison unit, based on the first and thesecond data, calculates their respective first and second hash valuesand compares the first and the second hash values.
 6. A storage systemaccording to claim 2, further comprising; a first decryption unitdifferent from said decryption unit, wherein said comparison unitcompares fourth data decrypted by said first decryption unit and thefirst data.
 7. A storage system according to claim 6, wherein a reportof failure is sent to the external device when the first data and thefourth data are not in agreement.
 8. A storage system according to claim7, further comprising; a control terminal for supervising said storagesystem, wherein the report of failure is sent to said control terminal.9. A storage system connected to an external device comprising: a firstencryption/decryption unit for encrypting first data received from theexternal device and decrypting the encrypted data into second data; asecond encryption/decryption unit for encrypting the first data anddecrypting the encrypted data into third data; and a failure detectionunit for comparing the second and the third data.
 10. A storage systemaccording to claim 9, wherein a report of failure is sent to theexternal device when the second and the third data are not in agreement.11. A storage system according to claim 10, further comprising; acontrol terminal for supervising said storage system, wherein the reportof failure is sent to said control terminal.
 12. A storage systemaccording to claim 9, further comprising; a third encryption/decryptionunit for encrypting the first data and decrypting the encrypted datainto fourth data, wherein said failure detection unit compares thesecond, the third, and the fourth data, and determines, when one of thedata is in disagreement with the rest of the data, that a failure ispresent in said encryption/decryption unit which encrypted and decryptedthe data in disagreement with the rest.
 13. A storage system connectedto an external device and having a disk device comprising: a channel IFunit for transmitting and receiving data to and from the externaldevice; a memory unit for temporarily storing data received from theexternal device; and a disk IF unit for transmitting and receiving datato and from the disk unit, wherein at least one of said channel IF unitand said disk IF unit includes a first encryption unit for encryptingfirst data received from the external device a second encryption unitdifferent from said first encryption unit, a first decryption unit fordecrypting the encrypted data into-second data, a second decryption unitdifferent from said first decryption unit, and a comparison unit forcomparing the first and the second data, and wherein the first data isencrypted in said second encryption unit when the first and the seconddata are not in agreement, the encrypted data is decrypted in saidsecond decryption unit into third data, and the first data and the thirddata are compared in said comparison unit.